import request from '@/request'

export function selectUser(formdata) {
  return request({
    url: '/user/select',
    method: 'post',
    data: formdata
  })
}

export function addUser(formdata) {
  return request({
    url: '/user/insert',
    method: 'post',
    data: formdata
  })
}

export function updateUser(formdata) {
  return request({
    url: '/user/update',
    method: 'post',
    data: formdata
  })
}

export function UserSexCounts() {
  return request({
    url: `/user/sexCounts`,
    method: 'get',
  })
}

export function deleteUser(id) {
  return request({
    url: `/user/delete/${id}`,
    method: 'post',
  })
}